package com.cheer.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author cheer
 */
@Data
public class UserRegisterDTO {

    @NotBlank(message = "姓名不能为空")
    @Length(min = 1, max = 10, message = "姓名长度不能超过10字")
    private String username;

    @NotNull(message = "所属单位不能为空")
    private Integer organization;

    @NotNull(message = "所属单位不能为空")
    private Integer office;
}
